package com.second.app.spring.annoations;

import com.second.app.spring.annoations.domain.Student;

/**
 * @Author GYZ
 * @Date 2023/9/13
 * <pre>
 *
 * </pre>
 */
public class MyIOCTest {

    public static void main(String[] args) {

        String packagePath ="com.second.app.spring.annoations.domain";

        ApplicationContext applicationContext = new ApplicationContext(packagePath);

        Student student =(Student) applicationContext.getBean("student");

        student.eat();
    }
}
